<template>
  <el-dialog
    title="详情"
    :visible.sync="dialogVisible"
    width="1000px"
  >
    <el-table
      :data="tableData"
      border
    >
      <el-table-column
        align="center"
        label="信息"
        prop="trade_no"
      />
      <el-table-column
        align="center"
        label="操作人员"
        width="120"
        prop="trade_no"
      />
      <el-table-column
        align="center"
        label="时间"
        width="120"
        prop="trade_no"
      />
    </el-table>
    <div
      slot="footer"
      class="dialog-footer"
    >
      <el-button
        type="primary"
        @click="dialogVisible=false"
      >关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
import { getLease } from "@/api/order";
export default {
  props: ['viewItem'],
  data() {
    return {
      dialogVisible: false,
      tableData: []
    };
  },
  methods: {
  },
  watch: {
    dialogVisible(val) {
      if (val) {
        getLease(this.orderId).then(res => {
          this.tableData = res || [];
        })
      }
    }
  }
};
</script>

<style lang="scss" scoped>
</style>